package com.product.shop.feign;

import com.product.common.utils.R;
import com.product.miaosha.entity.MiaoshaActivityEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "miaosha")
@RequestMapping("miaosha/miaoshaactivity")
public interface MiaoShaGoodsFeign {

    @RequestMapping("/update")
    public R update(@RequestBody MiaoshaActivityEntity miaoshaActivity);

    @RequestMapping("/MiaoShaGoodsInfo")
    public MiaoshaActivityEntity MiaoShaGoodsInfo(@RequestParam Long gid);

}
